package com.front.controllers;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;

import books.borrowing.EJBFacade;
import books.borrowing.bo.IBookManagerClientService;
import books.storage.service.BookDto;


public class BooksController {

	public Integer getList() throws MalformedURLException {
		List<String> result = new ArrayList<String>();

		IBookManagerClientService _bookManager;
		EJBFacade.getInstance();
		_bookManager = EJBFacade.getBooksManager();
 
		List<BookDto> books = _bookManager.findAllBooks();
		return books.size();
	}
}